import Vue from 'vue'
import Router from 'vue-router'
import ElementUI from "element-ui"
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(Router)
Vue.use(ElementUI)

export default new Router({
  routes: [
    {
      path: '',
      component: () => import ('@/views/index/index'),
      hidden: true,
      meta: { title: '首页', icon: 'dashboard', noCache: true }
    },{
      path: '/write/write',
      name:'write',
      component: () =>
          import ('@/views/write/write'),
      meta: { title: '文章编写', icon: 'guide', noCache: true }
    },{
      path: '/404',
      name:'write',
      component: () =>
          import ('@/views/404'),
      meta: { title: '网页找不到了|*-.-*|', icon: 'guide', noCache: true }
    }
  ]
})
